/*
编写 : Hexh
时间 : 2012-7-2 17:51:38
*/
using System;
using System.Collections;
using System.Text;
using HMIS.FrameWork.DomainBase;
using HMIS.Infrastructure.Core.Authority;
using HMIS.FrameWork;

namespace HMIS.Infrastructure.Core.Entities
{
	/// <summary>
	///	the entity of InfraIdcard
	/// </summary>
	public  class InfraIdcard : InputItem
	{
		#region Public Properties
			
		/// <summary>
		/// IC卡编号
		/// </summary>
		public virtual string CardUid { get; set; }

		/// <summary>
		/// IC卡信息
		/// </summary>
		public virtual string CardInfo { get; set; }

		/// <summary>
		/// IC卡类型
		/// </summary>
		public virtual InfraIdcardType Type { get; set; }

		/// <summary>
		/// 关联ID
		/// </summary>
		public virtual string ItemId { get; set; }

		/// <summary>
		/// 关联ID
		/// </summary>
		public virtual string DeptId { get; set; }

		/// <summary>
		/// 所属机构
		/// </summary>
		public virtual Department Department { get; set; }

		/// <summary>
		/// ID卡状态
		/// </summary>
		public virtual string State { get; set; }

						
		#endregion 
	}

	public enum InfraIdcardType
	{
		/// <summary>
		/// 员工信息卡
		/// </summary>
		[EnumDescription("员工信息卡")]
		UserCard = 1,

		/// <summary>
		/// 商品车信息卡
		/// </summary>
		[EnumDescription("商品车信息卡")]
		CarInfoCard = 2,

		/// <summary>
		/// 商品车钥匙卡
		/// </summary>
		[EnumDescription("商品车钥匙卡")]
		CarKeyCard = 3,

		/// <summary>
		/// 公务车辆通行卡
		/// </summary>
		[EnumDescription("公务车辆通行卡")]
		OffiCarCard = 4,

		/// <summary>
		/// 员工车辆通行卡
		/// </summary>
		[EnumDescription("员工车辆通行卡")]
		PersonCarCard = 5,

		/// <summary>
		/// 外来车辆通行卡
		/// </summary>
		[EnumDescription("外来车辆通行卡")]
		TempGateCard = 6
	}
}
